package com.wang.demo.test;

import com.wang.demo.test.t.Base;
import com.wang.di.core.bean.Initializing;
import com.wang.di.defalut.anno.DI;
import com.wang.di.defalut.anno.LogTs;
import com.wang.di.defalut.anno.SingleBeanAnno;
import com.wang.di.defalut.anno.Value;

@SingleBeanAnno
public class WDJ implements Initializing {
    @DI
    private Base baseA;
    @DI
    private Base baseC;
    @Value(name = "name")
    private String name;
    @Value(name = "age")
    private int age;

    @Override
    public void initialize() {
        System.out.println(baseA.name);
        System.out.println(baseC.name);
    }

    //    @Timer(second = 5* 1000)
    public void haha() {
        System.out.println("hahahahah");
    }

    @LogTs
    public void lala() {
        System.out.println(name + ":" + age);
    }
}
